package dcc.component.tabs;

import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.util.List;

import javax.swing.JPanel;
import javax.swing.JTextArea;

import dcc.mbg.model.MStory;

public class SelfAssessmentPanel extends JPanel {

	private JTextArea ta;
	
	public SelfAssessmentPanel() {
		super();
		initLayout();
	}

	private void initLayout() {
		ta = new JTextArea();
		GridBagLayout gbl = new GridBagLayout();
		gbl.columnWidths = new int[] { 25, 0, 50, 0 };
		gbl.rowHeights = new int[] { 25, 0, 50, 0 };
		gbl.columnWeights = new double[] { 0.0, 1.0, 0.0, Double.MIN_VALUE };
		gbl.rowWeights = new double[] { 0.0, 1.0, 0.0, Double.MIN_VALUE };
		this.setLayout(gbl);

		GridBagConstraints gbc_panel = new GridBagConstraints();
		gbc_panel.insets = new Insets(0, 0, 5, 5);
		gbc_panel.fill = GridBagConstraints.BOTH;
		gbc_panel.gridx = 1;
		gbc_panel.gridy = 1;
		this.add(ta, gbc_panel);
	}
	
	public String getData(){
		return this.ta.getText();
	}
	
	public void setData(String text) {
		ta.setText(text);
	}
}
